﻿@model Customer
@{
    ViewBag.Title = "Register";
}


@using (Html.BeginForm("Register", "Account",
    FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()
    <h4>Đăng ký tài khoản.</h4>
    <hr />
    @Html.ValidationSummary()
    <div class="form-group">
        <label class="col-md-2 control-label" for="Id">Tên đăng nhập</label>
        <div class="col-md-4">
                        @Html.TextBoxFor(m => m.Id, new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label" for="Password">Mật khẩu</label>
        <div class="col-md-4">
            @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label">Nhập lại mật khẩu</label>
        <div class="col-md-4">
            @Html.Password("ConfirmPassword", null, new { @class = "form-control" })
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label" for="Fullname">Họ tên</label>
        <div class="col-md-4">
            @Html.TextBoxFor(m => m.Fullname, new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label" for="Email">Email</label>
        <div class="col-md-4">
            @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-md-2 control-label" for="Photo">Hình ảnh</label>
        <div class="col-md-4">
            <input type="file" name="upPhoto" />
        </div>
    </div>
    @Html.Hidden("Activated", false)

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" class="btn btn-default" value="Register" />
        </div>
    </div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
